import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    pindaolist:[],
    weitianjialist:[]
    
  },
  mutations: {
    muChannels(state,payload){
      state.pindaolist=payload
    },
    increment(state,payload){
      state.weitianjialist.splice(payload.index,1)
      state.pindaolist.push(payload.item)
    },
    decrement(state,payload){
      state.pindaolist.splice(payload.index,1)
      state.weitianjialist.push(payload.item)
    }
  },
  actions: {
  },
  modules: {
  }
})
